package com.yun.space.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.yun.space.base.BaseDaoImpl;
import com.yun.space.entity.MainContent;
import com.yun.space.service.MainContentService;

/**
 * 
 * @author Okami
 *
 */
@Service
@Transactional
public class MainContentServiceImpl extends BaseDaoImpl<MainContent> implements MainContentService{
	/**
	 * 通过id查询实体类 MainContent（内容）
	 * @author CodingFanlt
	 */
	public List<MainContent> findByType(Integer type) {
		return getSession().createQuery("from MainContent where type = ?").setInteger(0, type).list();
	}
}
